(read-feature): Don't complete features not loaded from a file (which make
authorJuanma Barranquero <lekktu@gmail.com>
Sun, 5 Nov 2006 20:52:37 +0000 (20:52 +0000)
committerJuanma Barranquero <lekktu@gmail.com>
Sun, 5 Nov 2006 20:52:37 +0000 (20:52 +0000)
`unload-feature' to fail).

lisp/loadhist.el

index 61f15c8ef1c067d4d7a9338cfc6099ffd34e3d0f..6683f8ae4131ab2ba4861ca45ebb9d8cedc28b03 100644 (file)
@@ -119,7 +119,9 @@ return the feature \(symbol\)."
                           (mapcar (lambda (feature)
                                     (list (symbol-name feature)))
                                   features)
-                          nil t)))
+                          ;; Complete only features loaded from a file
+                          #'(lambda (f) (feature-file (intern (car f))))
+                          t)))
 
 (defvaralias 'loadhist-hook-functions 'unload-feature-special-hooks)
 (defvar unload-feature-special-hooks